Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)
commit769bf51755d697b7f2d47426f18cc5695008cde0
treea684569fa2da3da34d85053fb3ae9338d87dde21
parent85c5f2cfd3dae37b38137db553db030a7079f1d7
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff
src/corelib/io/qstorageinfo_unix.cpp